#!/usr/bin/python
#-*- coding: latin-1 -*-

from lib.markov import Markov

m = Markov(wordSize=7, dataBase='/tmp/markov-word7.sqlite3')

#m.trainFile('/tmp/bible.txt')
m.trainFile('/tmp/abc.txt')
m.createIndex()
for word in m.guessSentence()[:-1]:
	print word, " ",
print

for word in m.guessSentence()[:-1]:
	print word, " ",
print

for word in m.guessSentence()[:-1]:
	print word, " ",
print

for word in m.guessSentence()[:-1]:
	print word, " ",
print

for word in m.guessSentence()[:-1]:
	print word, " ",
print

for word in m.guessSentence()[:-1]:
	print word, " ",
print

